<script src="/assets/libs/jquery/dist/jquery.js"></script>
<script src="/mobile/js/jquery.cxselect.js"></script>
<div class="panel panel-default panel-intro">{:build_heading()}
    <?php
     use app\admin\model\halt\Cate;
function getName($name){
        if (empty($name))return;
        $arr = explode(",",$name);
        $model = new Cate();
        $str=array();
        foreach ($arr as $v){
            $info = $model->field('name')->find($v);
    if ($info){
    $str[]=$info['name'];
    }
    }
    return implode(',',$str);
    }
    ?>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">

                    <div class="fixed-table-container" style="padding-bottom: 0px;">
                        <div class="fixed-table-header" style="display: none;">
                            <table></table>
                        </div>
                        <div class="fixed-table-body">
                            <div class="fixed-table-loading" style="top: 42px; display: none;">正在努力地加载数据中，请稍候……</div>
                            <table id="table" class="table  table-bordered " data-operate-edit="1" data-operate-del="1" width="100%">
                                <thead>
                                <tr>
                                    <th style="text-align: center; vertical-align: middle; " data-field="cname">
                                        <div class="th-inner ">商品名称</div>
                                        <div class="fht-cell"></div>
                                    </th>
                                    <th style="text-align: center; vertical-align: middle; " data-field="cname">
                                        <div class="th-inner ">数量</div>
                                        <div class="fht-cell"></div>
                                    </th>



                                    <th style="text-align: center; vertical-align: middle; " data-field="ctime">
                                        <div class="th-inner ">操作时间</div>
                                        <div class="fht-cell"></div>
                                    </th>


                                </tr>
                                </thead>
                                <tbody data-listidx="0">
                                <?php
                                        $pDb = new \app\admin\model\Preproduct();

                                ?>
                                {notempty name="list"}

                                {volist name="list" id="vo"}

                                <tr id="c{$vo.id}">
                                    <?php
                                                $info = $pDb->find($vo['shopid']);
                                    ?>
                                    <td style="text-align: center; vertical-align: middle; ">{$info['cname']}</td>



                                    <td style="text-align: center; vertical-align: middle; ">{$vo.num}</td>



                                    <td style="text-align: center; vertical-align: middle; ">{:date("Y-m-d",$vo['inputtime'])}</td>



                                </tr>
                                {/volist}
                                {/notempty}

                                </tbody>
                            </table>
                        </div>

                        <div class="fixed-table-pagination" style="display: block;">
                            <div class="pull-left pagination-detail">

                                {$list->render()}

                            </div>
                        </div>



                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
</div>
</div>
